﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Whoever.Framework.Struct
{
    public struct Pager
    {
        public int page;
        public int totalResults;
        public int maxResults;
        public string sort;
        public string sortDir;

        public Pager(int maxResults)
        {
            this.page = 1;
            this.totalResults = 0;
            this.maxResults = maxResults;
            this.sort = null;
            this.sortDir = "ASC";
        }

        public Pager(string sortColumn)
        {
            this.page = 1;
            this.totalResults = 0;
            this.maxResults = 20;
            this.sort = sortColumn;
            this.sortDir = "ASC";
        }

        public Pager(int maxResults, string sortColumn)
        {
            this.page = 1;
            this.totalResults = 0;
            this.maxResults = maxResults;
            this.sort = sortColumn;
            this.sortDir = "ASC";
        }

        public Pager(int maxResults, string sortColumn, string sortDirection)
        {
            this.page = 1;
            this.totalResults = 0;
            this.maxResults = maxResults;
            this.sort = sortColumn;
            this.sortDir = sortDirection;
        }
    }
}
